{* Smarty *}
<form action="javascript:void(null);"  method="POST" onsubmit="ajax_process_form('{$smarty.const.MODULE_EXPERIMENT}', '{$smarty.const.EXPERIMENT_ACTION_ADD_NEW_SEQUENCE_DONE}', xajax.getFormValues(this)); return false;" >
<div id=errors>
</div>
<fieldset>
	<legend>Object type</legend>
		<div>
		Add new or choose		
		</div>
		<input type="text" name=new_sequence_object_type_name />
		<select name="object_type_list" onchange="new_sequence_object_type_name.value=object_type_list.value">
			<option value=""></option>
			{iterator from=$obj_type_list item=item}
			<option value="{$item->object_type_name->get_value()}">{$item->object_type_name->get_value()}</option>
			{/iterator}
		</select>
		<div>
			<textarea name="new_sequence_object_type_description" cols="20" rows="5"></textarea>
		</div>
</fieldset>
<fieldset>
	<legend>Object</legend>
		<div>
		Add new or choose
		</div>
		<input type="text" name=new_sequence_object_name />
		<select name="object_list" onchange="new_sequence_object_name.value=object_list.value">
			<option value=""></option>
			{iterator from=$obj_list item=item}
			<option value="{$item->object_name->get_value()}">{$item->object_name->get_value()}</option>
			{/iterator}
		</select>
		<div>
			<textarea name="new_sequence_object_description" cols="20" rows="5"></textarea>
		</div>
</fieldset>
<fieldset>
	<legend>File</legend>
		<div>
		File name
		</div>
		<div>
			<input type="text" name=new_file_name />
			<select name="file_type_list">
				<option value=""></option>
				{iterator from=$file_type_list item=item}
				<option value="{$item->file_type_name->get_value()}">{$item->file_type_name->get_value()}</option>
				{/iterator}
			</select>
		</div>
		<div>
		Description
		</div>
		<div>
			<textarea name="new_sequence_description" cols="20" rows="5"></textarea>
		</div>
</fieldset>
<fieldset>
	<legend>Sequence</legend>
		<div>
		Add
		</div>
		<div>
			<textarea name="new_sequence_text" cols="20" rows="5"></textarea>
		</div>
</fieldset>
<div id="button">
<input type="submit" value="Done"/>
<input type="button" value="Back" onclick="document.location.href='{url module=$smarty.const.MODULE_EXPERIMENT action=$smarty.const.EXPERIMENT_ACTION_SEQUENCES_LIST}';" />
</div>
</form>